class Parameter < ActiveRecord::Base

=begin
Retorna a lista de modulos cadastradas
=end  
  def self.modules
    parameter = Parameter.find(:first, :conditions => ["name = ? and module = ?","list_modules","parameters"] )
    @modules = parameter.value.split("\n")
    return @modules.sort
  end
  
  def self.get(module_name,parameter)
    Parameter.find(:first, :conditions => ["name = ? and module = ?",parameter,module_name] )
  end
  
end
